{extend name='public/modal'}
{block name='content'}
<div class="layui-fluid lotus-form">
    <div class="layui-row">
        <form action="editPasswd" class="layui-form layui-form-pane" id="lotus-edit-form" lay-filter="lotus-form-filter"
              method="post">
            <input name="id" type="hidden">

            <div class="layui-form-item">
                <label class="layui-form-label">用户名</label>
                <div class="layui-input-block">
                    <input autocomplete="off" class="layui-input" disabled id="username" lay-verify="required|username"
                           name="username" placeholder="请输入用户名" type="text">
                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label">密&nbsp;&nbsp;&nbsp;码</label>
                <div class="layui-input-block">
                    <input autocomplete="off" class="layui-input" id="password" name="password" placeholder="请输入密码"
                           type="password">
                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label">确认密码</label>
                <div class="layui-input-block">
                    <input autocomplete="off" class="layui-input" id="check_password" name="check_password"
                           placeholder="请再一次输入密码" type="password">
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-input-block">
                    <button class="layui-btn" lay-filter="toSubmit" lay-submit="" style="margin-left: 20%">提交</button>
                    <button class="layui-btn layui-btn-primary" id="reset" type="reset">重置</button>
                </div>
            </div>
        </form>
    </div>
</div>
<script>
    layui.use(['laydate', 'form', 'upload', 'layer', 'jquery'], function () {
        var laydate = layui.laydate
            , upload = layui.upload
            , layer = layui.layer
            , $ = layui.jquery
            , form = layui.form;
        form.render();
    });
</script>
<script>
    var lotusFormVal = {
        'id': "{$data.id}",
        "username": "{$data.username}",
    }
    lotus.editForm(lotusFormVal);
</script>
{/block}




